home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / comm / wnos5src.zip / MAILBOX.H < prev    next >
Text File  |  1993-08-09  |  2KB  |  54 lines

  1. #ifndef _MAILBOX_H
  2. #define _MAILBOX_H
  3.  
  4. #ifndef _TIMER_H
  5. #include "timer.h"
  6. #endif
  7.  
  8. struct mbx {
  9.     struct mbx *next;
  10.     int state;                /* mailbox state */
  11. #define MBX_LOGIN    0        /* trying to log in */
  12. #define MBX_CMD        1
  13. #define MBX_BBS        2        /* connected to the bbs */
  14. #define MBX_CONVERS 3        /* conversd implementation - DB3FL */
  15.     char name[20];
  16.     char nodename[20];
  17.     char *line;
  18.     int type;                /* Type of session when invoking "chat" */
  19.     int family;                /* Type of uplink session */
  20.     int user;                /* User linkage area */
  21.     char escape;            /* Escape character */
  22.     int16 perms;            /* Privileges
  23. #define AX25_CMD        8    /* AX.25 gateway operation allowed */
  24. #define TELNET_CMD        16    /* Telnet gateway operation allowed */
  25. #define NETROM_CMD        32    /* NET/ROM gateway operation allowed */
  26. #define SYSOP_CMD        64    /* Remote sysop access allowed */
  27. #define EXCLUDED_CMD    128    /* This user is banned from the BBS */
  28.     char *path;                /* Directory path */
  29.     char *startmsg;            /* Message to be sent at connect through any */
  30.                             /* of the gateways */
  31.     int err_cnt;            /* a try to stop endless "Huh?" or "Error ?" */
  32.     char stype;
  33. } ;
  34. #define     NULLMBX        (struct mbx *)0
  35.  
  36. /* Structure used for automatic flushing of gateway sockets */
  37. struct gwalarm {
  38.     int s1;
  39.     int s2;
  40.     struct timer t;
  41. };
  42.  
  43. extern struct mbx *Mbox;
  44. extern int ThirdParty;
  45. extern char Banner[];
  46.  
  47. /* In mailbox.c: */
  48. void mbx_incom __ARGS((int s,void *t,void *p));
  49. int domboxdisplay __ARGS((int argc,char *argv[],void *p));
  50. int mbxrecvline __ARGS((struct mbx *m));
  51.  
  52. #endif    /* _MAILBOX_H */
  53.  
  54.